import VueRouter from "vue-router"
// // 解决 vue-router 升级导致的 Uncaught(in promise)
// const originalPush = VueRouter.prototype.push
// VueRouter.prototype.push = function push (location) {
//   return originalPush.call(this, location).catch(err => err)
// }

// const originalReplace = VueRouter.prototype.replace
// VueRouter.prototype.replace = function replace (location) {
//   return originalReplace.call(this, location).catch(err => err)
// }
import contenter from "../components/contenter"
import news from '../components/news'
import concer from '../components/concer'
import wholepassage from "../components/wholepassage"
// import Passage from "../components/Passage"
import Seconde from "../components/secondindex.vue"
import firstye from "../components/firstye"
 const router = new VueRouter({
    routes:[
        {
            path:'/',
            redirect:'/firstye'

        },
        {
            path:'/wholepassage',
            component:wholepassage
        },
        {
            path:'/firstye',
            component:firstye
        },
        {
            path:'/seconde',
            component:Seconde
        },
        {path:"/contenter",component:contenter},
        {path:"/news",component:news},
        {path:"/concer",component:concer},
    ]

})
export default router